// Copyright (c) 2009 Luca Marrocco.
// Modified or written by Luca Marrocco for inclusion with codej.
// Licensed under the Apache License, Version 2.0 (the "License")
package codej.ast;

import codej.ast.*;

/** @author Luca Marrocco */
public class ExpressionInitializer extends AbstractNode implements VariableInitializer {
	
	private int dimension = 0;
	private Expression expression;

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public int getDimension() {
		return dimension;
	}

	public Expression getExpression() {
		return expression;
	}

	public ExpressionInitializer setDimension(int dimension) {
		this.dimension = dimension;
		return this;
	}

	public ExpressionInitializer setExpression(Expression expression) {
		this.expression = expression;
		return this;
	}
}
